﻿using SqlSugar;

namespace Zhaoxi.SqlSugar.DTOModels
{
    public class CompanyDto
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        public string? CompanyName { get; set; }

        public DateTime CreateTime { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(UserDto.CompanyId))]
        public List<UserDto> UserList { get; set; }
    }
}
